package com.snap.awesomeserial.ui;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;

import com.snap.awesomeserial.R;
import com.snap.awesomeserial.base.BaseActivity;
import com.snap.awesomeserial.utils.ToastUtils;

import butterknife.BindView;

public class SettingActivity extends BaseActivity {


    @BindView(R.id.title_tv)
    TextView titleTv;

    @Override
    protected int layoutResId() {
        return R.layout.activity_setting;
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initData();
        initViews();
    }

    private void initData() {

    }

    private void initViews() {
        titleTv.setText("功能调试");
    }


    public void testTemp(View view) {
        Intent intent = new Intent(this, TestTempActivity.class);
        startActivity(intent);
    }

    public void setMechanical(View view) {
        Intent intent = new Intent(this, TestTempActivity.class);
        startActivity(intent);
    }

    public void initPosition(View view) {
        Intent intent = new Intent(this, TestTempActivity.class);
        startActivity(intent);
    }

    public void factoryReset(View view) {
        // TODO: 2021/6/16 恢复出厂设置
        ToastUtils.get().showText("恢复出厂设置成功");
    }

    public void testSpeed(View view) {
        Intent intent = new Intent(this, TestSpeedActivity.class);
        startActivity(intent);
    }

    public void testMechanical(View view) {
        Intent intent = new Intent(this, TestMechanicalActivity.class);
        startActivity(intent);
    }
}
